#include <iostream>
#include "Server.hpp"
using namespace std;

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cout << "Incorrect use, correct use :" << endl
             << "        ./server local_ip local_port" << endl;
        return 1;
    }

    uint16_t port = stoi(argv[1]);

    Server server(port);
    server.Init();

    server.Start();

    return 0;
}
